<nz-table #expandTable [nzData]="listOfMapData" nzTableLayout="fixed">
    <thead>
        <tr>
            <th>Name</th>
            <th>Age</th>
            <th>Address</th>
        </tr>
    </thead>
    <tbody>
        <ng-container *ngFor="let data of listOfMapData">
            <ng-container *ngFor="let item of mapOfExpandedData[data.key]">
                <tr *ngIf="(item.parent && item.parent.expand) || !item.parent">
                    <td [nzIndentSize]="item.level! * 20" [nzShowExpand]="!!item.children" [(nzExpand)]="item.expand"
                        (nzExpandChange)="collapse(mapOfExpandedData[data.key], item, $event)">
                        {{ item.name }}
                    </td>
                    <td>{{ item.age }}</td>
                    <td>{{ item.address }}</td>
                </tr>
            </ng-container>
        </ng-container>
        <tr>
            <td nzExpand="false">A</td>
            <td>A</td>
            <td>A</td>
        </tr>
    </tbody>
</nz-table>